package com.cqd.entity;

import lombok.Data;

import javax.persistence.*;
import java.util.List;

@Entity
@Table(name = "t_brand")
@Data
public class Brand {

    @Id
    @Column(name = "id")
    private Long id;

    private String bname;

    @OneToMany(cascade = CascadeType.ALL,mappedBy = "brand",fetch = FetchType.EAGER)

    private List<Goods> list;

}
